

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="https://cdn.bootcss.com/vue/2.2.2/vue.min.js"></script>
</head>
<body>
<div id="app">
  <ol>
    <li v-for="site in sites">
      {{ site.name }}
    </li>
  </ol>
    <br>
   <ul>
    <li v-for="(value, key ) in object1">
     {{ key}} : {{ value }}
    </li>
  </ul>
  
  <br>
   <ul>
    <li v-for="(value, key, index ) in object1">
     {{ index }}. {{ key}} : {{ value }}
    </li>
  </ul>
  

  <ul>
    <li v-for="n in 10">
     {{ n }}
    </li>
  </ul>

</div>
​
<script>
new Vue({
  el: '#app',
  data: {
    sites: [
      { name: 'Runoob' },
      { name: 'Google' },
      { name: 'Taobao' }
    ],
    object1 :{
      name: '菜鸟教程',
      url: 'http://www.runoob.com',
      slogan: '学的不仅是技术，更是梦想！'
    }
  }
})
</script>
</body>
</html>

